﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using IBusinessLogicLayer;

namespace MVC.Controllers
{
    public class HomeController : Controller
    {
        private IAlbumBll albumBll;

        public HomeController(IAlbumBll bll)
        {
            albumBll = bll;
        }
        public ActionResult Index()
        {
            var freshOffTheGrill = albumBll.GetTopSellingAlbums(5);
            return View(freshOffTheGrill);
        }
    }
}